import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import  euqipmentTime from './views/itemyjzb1/euqipmentTime.vue'
import  allocating from './views/itemyjzb1/allocating-operation.vue'
import  frequency from './views/itemyjzb1/frequency-analysis.vue'
import  inventory from './views/itemyjzb1/Inventory-status'
import  safe from './views/itemyjzb1/safe-time'
import userInfo from './views/itemdjzb2/userInfo'

import nav7table from './views/itemgdzc7/page1.vue'
import nav7apply from './views/itemgdzc7/page2.vue'
import nav7cancel from './views/itemgdzc7/page3.vue'
import nav6statusadmin from './views/itemjycl6/page1.vue'
import nav6poweradmin from './views/itemjycl6/page2.vue'
import nav6messageadmin from './views/itemjycl6/page3.vue'
import nav6mantainadmin from './views/itemjycl6/page4.vue'
import nav5tempadmin from './views/itemhjgl5/page1.vue'
import nav5humiadmin from './views/itemhjgl5/page2.vue'
import nav5poweradmin from './views/itemhjgl5/page3.vue'




let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '应急装备库房管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
           { path: '/euqipmentTime', component: euqipmentTime, name: '装备使用记录' },// { path: '/table', component: Table, name: '装备使用记录' },//
            { path: '/allocating', component: allocating, name: '调拨操作' },
            { path: '/safe', component: safe, name: '安全期限管理' },
            { path: '/inventory', component: inventory, name: '库存状态显示' },
            { path: '/echarts', component: echarts, name: '物品使用频率分析' },

        ]
    },
    {
        path: '/',
        component: Home,
        name: '单警装备柜管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/userInfo', component: userInfo, name: '个人信息管理' },
            { path: '/page5', component: Page5, name: '单警装备柜管控' },
            { path: '/page5', component: Page5, name: '单警装备充电管理' },
            { path: '/page5', component: Page5, name: '单警装备维护管理' },
            { path: '/page5', component: Page5, name: '单警装备出入库管理' },
            { path: '/page5', component: Page5, name: '单警装备柜物品数据对接' },
            { path: '/page5', component: Page5, name: '安防取证信息管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '智能门禁管理',
        iconCls: 'fa fa-address-card',
        //leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '人脸识别及指纹信息管理' },
            { path: '/page6', component: Page6, name: '人员及物品出入管理' },
            { path: '/page6', component: Page6, name: '库房光源管理' },
            { path: '/page6', component: Page6, name: '物品出入数量播报' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '安防取证管理',
        iconCls: 'fa fa-address-card',
        //leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '库房动静态视频取证' },
            { path: '/page6', component: Page6, name: '人脸识别取证核对' },

        ]
    },


{
    path: '/',
        component: Home,
    name: '环境管理',
    iconCls: 'fa fa-address-card',
    //leaf: true,//只有一个节点
    children: [
    { path: '/ nav5tempadmin', component:  nav5tempadmin, name: '环境温度管理' },
    { path: '/ nav5humiadmin', component: nav5humiadmin, name: '环境湿度管理' },
    { path: '/ nav5poweradmin', component: nav5poweradmin, name: '后备电源管理' },

]
},
{
    path: '/',
        component: Home,
    name: '警用车辆管理',
    iconCls: 'fa fa-address-card',
    //leaf: true,//只有一个节点
    children: [
    { path: '/nav6statusadmin', component: nav6statusadmin, name: '车辆状态管理' },
    { path: '/nav6poweradmin', component: nav6poweradmin, name: '车辆权限管理' },
    { path: '/nav6messageadmin', component: nav6messageadmin, name: '车辆信息管理' },
    { path: '/nav6mantainadmin ', component: nav6mantainadmin , name: '车辆维护管理' },
]
},
{
    path: '/',
        component: Home,
    name: '固定资产管理',
    iconCls: 'fa fa-address-card',
    //leaf: true,//只有一个节点
    children: [
    { path: '/nav7table', component: nav7table, name: '固定资产归属数据表' },
    { path: '/nav7apply', component: nav7apply, name: '物料采购申请' },
    { path: '/nav7cancel', component: nav7cancel, name: '物品报废处理' },
]
},
{
    path: '/',
        component: Home,
    name: '拓展库',
    iconCls: 'fa fa-address-card',
    //leaf: true,//只有一个节点
    children: [
    { path: '/page6', component: Page6, name: '1' },
    { path: '/page6', component: Page6, name: '2' },
    { path: '/page6', component: Page6, name: '3' },
    { path: '/page6', component: Page6, name: '4' },
    { path: '/page6', component: Page6, name: '5' },
    { path: '/page6', component: Page6, name: '6' },
]
},


{
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;